package com.kayt.cyberBar.cyber.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * The persistent class for the b_cyber_base_order_product database table.
 * 
 */
@Entity
@Table(name="b_cyber_base_order_product")
@NamedQuery(name="BCyberBaseOrderProduct.findAll", query="SELECT b FROM BCyberBaseOrderProduct b")
public class BCyberBaseOrderProduct implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String count;
	private String createTime;
	private String overTime;
	private String productCode;
	private String productName;
	private String remindCode;
	private String statusCode;
	private String unitCountCode;
	private String orderCode;
	private String startTime;
	private String endTime;
	private String updateTime;
	private String usedTime;
	private String standardTime;
	
	private BCyberBaseOrder order;
	
	public BCyberBaseOrderProduct() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getCount() {
		return this.count;
	}

	public void setCount(String count) {
		this.count = count;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	
	@Column(name="START_TIME")
	public String getStartTime() {
		return startTime;
	}


	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}


	@Column(name="OVER_TIME")
	public String getOverTime() {
		return this.overTime;
	}

	public void setOverTime(String overTime) {
		this.overTime = overTime;
	}


	@Column(name="PRODUCT_CODE")
	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}


	@Column(name="STANDARD_TIME")
	public String getStandardTime() {
		return standardTime;
	}


	public void setStandardTime(String standardTime) {
		this.standardTime = standardTime;
	}

	@Column(name="PRODUCT_NAME")
	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}


	@Column(name="REMIND_CODE")
	public String getRemindCode() {
		return this.remindCode;
	}

	public void setRemindCode(String remindCode) {
		this.remindCode = remindCode;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	@Column(name="UNIT_COUNT_CODE")
	public String getUnitCountCode() {
		return this.unitCountCode;
	}

	public void setUnitCountCode(String unitCountCode) {
		this.unitCountCode = unitCountCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name="END_TIME")
	public String getEndTime() {
		return endTime;
	}


	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}


	@Column(name="USED_TIME")
	public String getUsedTime() {
		return this.usedTime;
	}

	public void setUsedTime(String usedTime) {
		this.usedTime = usedTime;
	}
	
	@Column(name="ORDER_CODE")
	public String getOrderCode() {
		return orderCode;
	}


	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}


	@ManyToOne(targetEntity = BCyberBaseOrder.class, fetch = FetchType.LAZY)
	@JoinColumn(name="ORDER_CODE", referencedColumnName="CODE", nullable = false, insertable=false, updatable=false)
	@JsonIgnore
	public BCyberBaseOrder getOrder() {
		return order;
	}


	public void setOrder(BCyberBaseOrder order) {
		this.order = order;
	}
	
}